package com.java.forum.a_entity;


import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.stereotype.Component;

@Component
@Data
public class User {
    private Integer uid;
    private String username;
    @JsonIgnore
    private String password;//不会被传到前端
    @JsonIgnore
    private String salt;
    private String avatar;
    private String email;
    private Integer gender;//0-女 1-男 2-未设置
}
